<#assign title="基金时序指标添加页面">
<#include "/admin/inc/top.html"/>
<div class="main-content" id="main-content">
    <header class="header navbar bg-white shadow">
        <div class="btn-group tool-button">
            <a class="btn btn-primary navbar-btn" href="${base!}/private/fof/fofFundIndicator" data-pjax><i
                    class="fa fa-reply"></i> 返回</a>
        </div>
    </header>
    <section class="content">

        <div class="form-wrapper" style="min-height:500px;">
            <section class="panel panel-form">
                <form id="unitAddForm" role="form" class="form-horizontal parsley-form" data-parsley-validate
                      action="${base!}/private/fof/fofFundIndicator/addDo" method="post">
                    <div class="row mb10">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <label for="type" class="col-sm-2 control-label">1:基金 2：FOF</label>

                                <div class="col-sm-8">
                                    <input type="text" id="type" class="form-control" name="type"
                                    data-parsley-required="true"  placeholder="1:基金 2：FOF">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fid" class="col-sm-2 control-label">基金或者FOF唯一编号</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fid" class="form-control" name="fid"
                                    data-parsley-required="true" data-parsley-type="number" placeholder="基金或者FOF唯一编号">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="unitNav" class="col-sm-2 control-label">单位净值</label>

                                <div class="col-sm-8">
                                    <input type="text" id="unitNav" class="form-control" name="unitNav"
                                     data-parsley-type="number" placeholder="单位净值">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="yieldAnnually" class="col-sm-2 control-label">年化收益率</label>

                                <div class="col-sm-8">
                                    <input type="text" id="yieldAnnually" class="form-control" name="yieldAnnually"
                                     data-parsley-type="number" placeholder="年化收益率">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="yield1m" class="col-sm-2 control-label">近一个月收益率</label>

                                <div class="col-sm-8">
                                    <input type="text" id="yield1m" class="form-control" name="yield1m"
                                     data-parsley-type="number" placeholder="近一个月收益率">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="yield3m" class="col-sm-2 control-label">近三个月收益率</label>

                                <div class="col-sm-8">
                                    <input type="text" id="yield3m" class="form-control" name="yield3m"
                                     data-parsley-type="number" placeholder="近三个月收益率">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="yield6m" class="col-sm-2 control-label">近六个月收益率</label>

                                <div class="col-sm-8">
                                    <input type="text" id="yield6m" class="form-control" name="yield6m"
                                     data-parsley-type="number" placeholder="近六个月收益率">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="yield1y" class="col-sm-2 control-label">近一年收益率</label>

                                <div class="col-sm-8">
                                    <input type="text" id="yield1y" class="form-control" name="yield1y"
                                     data-parsley-type="number" placeholder="近一年收益率">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="yield3y" class="col-sm-2 control-label">近三年收益率</label>

                                <div class="col-sm-8">
                                    <input type="text" id="yield3y" class="form-control" name="yield3y"
                                     data-parsley-type="number" placeholder="近三年收益率">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="sharpRatio" class="col-sm-2 control-label">夏普比率</label>

                                <div class="col-sm-8">
                                    <input type="text" id="sharpRatio" class="form-control" name="sharpRatio"
                                     data-parsley-type="number" placeholder="夏普比率">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="kumarRatio" class="col-sm-2 control-label">卡玛比率</label>

                                <div class="col-sm-8">
                                    <input type="text" id="kumarRatio" class="form-control" name="kumarRatio"
                                     data-parsley-type="number" placeholder="卡玛比率">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="skewness" class="col-sm-2 control-label">偏度</label>

                                <div class="col-sm-8">
                                    <input type="text" id="skewness" class="form-control" name="skewness"
                                     data-parsley-type="number" placeholder="偏度">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="kurtosis" class="col-sm-2 control-label">峰度</label>

                                <div class="col-sm-8">
                                    <input type="text" id="kurtosis" class="form-control" name="kurtosis"
                                     data-parsley-type="number" placeholder="峰度">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="volatilityAnnually" class="col-sm-2 control-label">年化波动率</label>

                                <div class="col-sm-8">
                                    <input type="text" id="volatilityAnnually" class="form-control" name="volatilityAnnually"
                                     data-parsley-type="number" placeholder="年化波动率">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="drawdown" class="col-sm-2 control-label">最大回撤</label>

                                <div class="col-sm-8">
                                    <input type="text" id="drawdown" class="form-control" name="drawdown"
                                     data-parsley-type="number" placeholder="最大回撤">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="winningRatioMonthly" class="col-sm-2 control-label">月度胜率</label>

                                <div class="col-sm-8">
                                    <input type="text" id="winningRatioMonthly" class="form-control" name="winningRatioMonthly"
                                     data-parsley-type="number" placeholder="月度胜率">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="navDate" class="col-sm-2 control-label">日期</label>

                                <div class="col-sm-8">
                                    <input type="text" id="navDate" class="form-control" name="navDate"
                                      placeholder="日期">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="accumulateNav" class="col-sm-2 control-label">累计净值</label>

                                <div class="col-sm-8">
                                    <input type="text" id="accumulateNav" class="form-control" name="accumulateNav"
                                     data-parsley-type="number" placeholder="累计净值">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="accumulateUpDown" class="col-sm-2 control-label">累计净值当日涨跌值</label>

                                <div class="col-sm-8">
                                    <input type="text" id="accumulateUpDown" class="form-control" name="accumulateUpDown"
                                     data-parsley-type="number" placeholder="累计净值当日涨跌值">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                    </div>
                    <div class="col-lg-3"></div>
                    <div class="col-lg-6">
                        <div class="form-group text-center">
                            <label></label>

                            <div>
                                <button class="btn btn-primary btn-block btn-lg btn-parsley"
                                        data-loading-text="正在提交...">提 交
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </section>

        </div>
        <a class="exit-offscreen"></a>
    </section>
</div>
<script language="JavaScript">
    $(document).ready(function () {
        $('#unitAddForm').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (arr, form, options) {
                form.find("button:submit").button("loading");
            },
            success: function (data, statusText, xhr, form) {
                if (data.code == 200) {
                    Toast.success(data.msg);
                    form.resetForm();
                } else {
                    Toast.error(data.msg);
                }
                form.find("button:submit").button("reset");
            }
        });
    });
</script>
<#include "/admin/inc/bottom.html"/>